package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName product_store
 */
@TableName(value ="product_store")
public class ProductStore implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String storenumber;

    /**
     * 
     */
    private String identifycode;

    /**
     * 
     */
    private String storetime;

    /**
     * 
     */
    private String supplier;

    /**
     * 
     */
    private String storetype;

    /**
     * 
     */
    private String creator;

    /**
     * 
     */
    private String reviewer;

    /**
     * 
     */
    private String opinion;

    /**
     * 
     */
    private String ordernumber;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getStorenumber() {
        return storenumber;
    }

    /**
     * 
     */
    public void setStorenumber(String storenumber) {
        this.storenumber = storenumber;
    }

    /**
     * 
     */
    public String getIdentifycode() {
        return identifycode;
    }

    /**
     * 
     */
    public void setIdentifycode(String identifycode) {
        this.identifycode = identifycode;
    }

    /**
     * 
     */
    public String getStoretime() {
        return storetime;
    }

    /**
     * 
     */
    public void setStoretime(String storetime) {
        this.storetime = storetime;
    }

    /**
     * 
     */
    public String getSupplier() {
        return supplier;
    }

    /**
     * 
     */
    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    /**
     * 
     */
    public String getStoretype() {
        return storetype;
    }

    /**
     * 
     */
    public void setStoretype(String storetype) {
        this.storetype = storetype;
    }

    /**
     * 
     */
    public String getCreator() {
        return creator;
    }

    /**
     * 
     */
    public void setCreator(String creator) {
        this.creator = creator;
    }

    /**
     * 
     */
    public String getReviewer() {
        return reviewer;
    }

    /**
     * 
     */
    public void setReviewer(String reviewer) {
        this.reviewer = reviewer;
    }

    /**
     * 
     */
    public String getOpinion() {
        return opinion;
    }

    /**
     * 
     */
    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    /**
     * 
     */
    public String getOrdernumber() {
        return ordernumber;
    }

    /**
     * 
     */
    public void setOrdernumber(String ordernumber) {
        this.ordernumber = ordernumber;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProductStore other = (ProductStore) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStorenumber() == null ? other.getStorenumber() == null : this.getStorenumber().equals(other.getStorenumber()))
            && (this.getIdentifycode() == null ? other.getIdentifycode() == null : this.getIdentifycode().equals(other.getIdentifycode()))
            && (this.getStoretime() == null ? other.getStoretime() == null : this.getStoretime().equals(other.getStoretime()))
            && (this.getSupplier() == null ? other.getSupplier() == null : this.getSupplier().equals(other.getSupplier()))
            && (this.getStoretype() == null ? other.getStoretype() == null : this.getStoretype().equals(other.getStoretype()))
            && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
            && (this.getReviewer() == null ? other.getReviewer() == null : this.getReviewer().equals(other.getReviewer()))
            && (this.getOpinion() == null ? other.getOpinion() == null : this.getOpinion().equals(other.getOpinion()))
            && (this.getOrdernumber() == null ? other.getOrdernumber() == null : this.getOrdernumber().equals(other.getOrdernumber()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStorenumber() == null) ? 0 : getStorenumber().hashCode());
        result = prime * result + ((getIdentifycode() == null) ? 0 : getIdentifycode().hashCode());
        result = prime * result + ((getStoretime() == null) ? 0 : getStoretime().hashCode());
        result = prime * result + ((getSupplier() == null) ? 0 : getSupplier().hashCode());
        result = prime * result + ((getStoretype() == null) ? 0 : getStoretype().hashCode());
        result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
        result = prime * result + ((getReviewer() == null) ? 0 : getReviewer().hashCode());
        result = prime * result + ((getOpinion() == null) ? 0 : getOpinion().hashCode());
        result = prime * result + ((getOrdernumber() == null) ? 0 : getOrdernumber().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", storenumber=").append(storenumber);
        sb.append(", identifycode=").append(identifycode);
        sb.append(", storetime=").append(storetime);
        sb.append(", supplier=").append(supplier);
        sb.append(", storetype=").append(storetype);
        sb.append(", creator=").append(creator);
        sb.append(", reviewer=").append(reviewer);
        sb.append(", opinion=").append(opinion);
        sb.append(", ordernumber=").append(ordernumber);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}